using Asteroid.Content;
using GameFramework.GameObjects;
using Microsoft.Xna.Framework;

namespace Asteroid.Screens
{
    /// <summary>
    /// The settings screen.
    /// </summary>
    public class SettingsScreen : Screen
    {
        /// <summary>
        /// Menu title.
        /// </summary>
        private readonly Label menuTitle;

        /// <summary>
        /// Initializes a new instance of the <see cref="SettingsScreen"/> class.
        /// </summary>
        public SettingsScreen()
        {
            menuTitle = new Label
                        {
                            FontName = Fonts.MenuTitle,
                            Color = Color.Yellow,
                            Text = "Settings",
                            Position = new Vector2(Game.ScreenWidth / 2, 50)
                        };

            Children.Add(menuTitle);
        }

        /// <summary>
        /// Update the settings screen.
        /// </summary>
        public override void Update()
        {
            base.Update();

            if (IsBackButtonPressed)
            {
                ScreenManager.NavigateBack();   
            }
        }
    }
}
